x86/HPET: fix oversight in 23033:84bacd800bf8 (2nd try)
authorJan Beulich <jbeulich@novell.com>
Thu, 17 Mar 2011 13:32:41 +0000 (13:32 +0000)
committerJan Beulich <jbeulich@novell.com>
Thu, 17 Mar 2011 13:32:41 +0000 (13:32 +0000)
commitf9c1de946c4e283777fc7115f266ea668baa7438
tree68cbe6da311f984d9ef22e030bbb08947683f434
parenta5e1b534ac6fe2372205b63583e8d0c074d3467e
x86/HPET: fix oversight in 23033:84bacd800bf8 (2nd try)

Clearly for the adjusted BUG_ON()s to not yield false positives
num_hpets_used (rather than num_chs_used, as done mistakenly in
23042:599ceb5b0a9b) must be incremented before setting up an IRQ (and
decremented back when the setup failed). To avoid further confusion,
just eliminate the local variable altogether.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/hpet.c